from sklearn.datasets import load_iris
from  sklearn.model_selection import train_test_split

data=load_iris()
x=data.data
y=data.target

train_x,test_x,train_y,test_y=train_test_split(x,y,train_size=0.7)


